package com.pojo;

/**
 * AbstractBossId entity provides the base persistence definition of the BossId
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBossId implements java.io.Serializable {

	// Fields

	private String bossname;
	private Integer bossid;

	// Constructors

	/** default constructor */
	public AbstractBossId() {
	}

	/** minimal constructor */
	public AbstractBossId(String bossname) {
		this.bossname = bossname;
	}

	/** full constructor */
	public AbstractBossId(String bossname, Integer bossid) {
		this.bossname = bossname;
		this.bossid = bossid;
	}

	// Property accessors

	public String getBossname() {
		return this.bossname;
	}

	public void setBossname(String bossname) {
		this.bossname = bossname;
	}

	public Integer getBossid() {
		return this.bossid;
	}

	public void setBossid(Integer bossid) {
		this.bossid = bossid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractBossId))
			return false;
		AbstractBossId castOther = (AbstractBossId) other;

		return ((this.getBossname() == castOther.getBossname()) || (this
				.getBossname() != null && castOther.getBossname() != null && this
				.getBossname().equals(castOther.getBossname())))
				&& ((this.getBossid() == castOther.getBossid()) || (this
						.getBossid() != null && castOther.getBossid() != null && this
						.getBossid().equals(castOther.getBossid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBossname() == null ? 0 : this.getBossname().hashCode());
		result = 37 * result
				+ (getBossid() == null ? 0 : this.getBossid().hashCode());
		return result;
	}

}